/**
 * Generate time : 2011-06-08 16:42:32
 * Version : 1.0.1.V20070717
 */
package com.baosight.sczx.zm.cl.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;

/**
 * ZMCLRoundcheckWorknote
 * 
 */
public class ZMCLRoundcheckWorknote extends DaoEPBase {

	private String fdKeyId = " "; /* 主键 */
	private String fdSecuritypathId = " "; /* 安全巡检路线主键 */
	private String fdNotecode = " "; /* 工单编号 */
	private String fdNotesource = " "; /* 工单来源 */
	private String fdStatus = " "; /* 工单状态 */
	private String fdDepartmentId = " "; /* 巡检单位 */
	private String fdResponsibilityPeople = " "; /* 巡检人 */
	private String fdNotecontent = " "; /* 工单内容 */
	private String fdNotedate = " "; /* 工单日期 */
	private String fdFeedback = " "; /* 巡检反馈 */
	private String fdRemark = " "; /* 备注 */

	/**
	 * initialize the metadata
	 */
	public void initMetaData() {
		EiColumn eiColumn;

		eiColumn = new EiColumn("fdKeyId");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("主键");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSecuritypathId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("安全巡检路线主键");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdNotecode");
		eiColumn.setFieldLength(20);
		eiColumn.setDescName("工单编号");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdNotesource");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("工单来源");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdStatus");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("工单状态");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdDepartmentId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("巡检单位");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdResponsibilityPeople");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("巡检人");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdNotecontent");
		eiColumn.setFieldLength(500);
		eiColumn.setDescName("工单内容");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdNotedate");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("工单日期");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdFeedback");
		eiColumn.setFieldLength(500);
		eiColumn.setDescName("巡检反馈");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRemark");
		eiColumn.setFieldLength(500);
		eiColumn.setDescName("备注");
		eiMetadata.addMeta(eiColumn);

	}

	/**
	 * the constructor
	 */
	public ZMCLRoundcheckWorknote() {
		initMetaData();
	}

	/**
	 * get the fdKeyId - 主键
	 * 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}

	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}

	/**
	 * get the fdSecuritypathId - 安全巡检路线主键
	 * 
	 * @return the fdSecuritypathId
	 */
	public String getFdSecuritypathId() {
		return this.fdSecuritypathId;
	}

	/**
	 * set the fdSecuritypathId - 安全巡检路线主键
	 */
	public void setFdSecuritypathId(String fdSecuritypathId) {
		this.fdSecuritypathId = fdSecuritypathId;
	}

	/**
	 * get the fdNotecode - 工单编号
	 * 
	 * @return the fdNotecode
	 */
	public String getFdNotecode() {
		return this.fdNotecode;
	}

	/**
	 * set the fdNotecode - 工单编号
	 */
	public void setFdNotecode(String fdNotecode) {
		this.fdNotecode = fdNotecode;
	}

	/**
	 * get the fdNotesource - 工单来源
	 * 
	 * @return the fdNotesource
	 */
	public String getFdNotesource() {
		return this.fdNotesource;
	}

	/**
	 * set the fdNotesource - 工单来源
	 */
	public void setFdNotesource(String fdNotesource) {
		this.fdNotesource = fdNotesource;
	}

	/**
	 * get the fdStatus - 工单状态
	 * 
	 * @return the fdStatus
	 */
	public String getFdStatus() {
		return this.fdStatus;
	}

	/**
	 * set the fdStatus - 工单状态
	 */
	public void setFdStatus(String fdStatus) {
		this.fdStatus = fdStatus;
	}

	/**
	 * get the fdDepartmentId - 巡检单位
	 * 
	 * @return the fdDepartmentId
	 */
	public String getFdDepartmentId() {
		return this.fdDepartmentId;
	}

	/**
	 * set the fdDepartmentId - 巡检单位
	 */
	public void setFdDepartmentId(String fdDepartmentId) {
		this.fdDepartmentId = fdDepartmentId;
	}

	/**
	 * get the fdResponsibilityPeople - 巡检人
	 * 
	 * @return the fdResponsibilityPeople
	 */
	public String getFdResponsibilityPeople() {
		return this.fdResponsibilityPeople;
	}

	/**
	 * set the fdResponsibilityPeople - 巡检人
	 */
	public void setFdResponsibilityPeople(String fdResponsibilityPeople) {
		this.fdResponsibilityPeople = fdResponsibilityPeople;
	}

	/**
	 * get the fdNotecontent - 工单内容
	 * 
	 * @return the fdNotecontent
	 */
	public String getFdNotecontent() {
		return this.fdNotecontent;
	}

	/**
	 * set the fdNotecontent - 工单内容
	 */
	public void setFdNotecontent(String fdNotecontent) {
		this.fdNotecontent = fdNotecontent;
	}

	/**
	 * get the fdNotedate - 工单日期
	 * 
	 * @return the fdNotedate
	 */
	public String getFdNotedate() {
		return this.fdNotedate;
	}

	/**
	 * set the fdNotedate - 工单日期
	 */
	public void setFdNotedate(String fdNotedate) {
		this.fdNotedate = fdNotedate;
	}

	/**
	 * get the fdFeedback - 巡检反馈
	 * 
	 * @return the fdFeedback
	 */
	public String getFdFeedback() {
		return this.fdFeedback;
	}

	/**
	 * set the fdFeedback - 巡检反馈
	 */
	public void setFdFeedback(String fdFeedback) {
		this.fdFeedback = fdFeedback;
	}

	/**
	 * get the fdRemark - 备注
	 * 
	 * @return the fdRemark
	 */
	public String getFdRemark() {
		return this.fdRemark;
	}

	/**
	 * set the fdRemark - 备注
	 */
	public void setFdRemark(String fdRemark) {
		this.fdRemark = fdRemark;
	}

	/**
	 * get the value from Map
	 */
	@SuppressWarnings("rawtypes")
	public void fromMap(Map map) {

		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdSecuritypathId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSecuritypathId")), fdSecuritypathId));
		setFdNotecode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdNotecode")), fdNotecode));
		setFdNotesource(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdNotesource")), fdNotesource));
		setFdStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStatus")), fdStatus));
		setFdDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartmentId")), fdDepartmentId));
		setFdResponsibilityPeople(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdResponsibilityPeople")), fdResponsibilityPeople));
		setFdNotecontent(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdNotecontent")), fdNotecontent));
		setFdNotedate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdNotedate")), fdNotedate));
		setFdFeedback(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdFeedback")), fdFeedback));
		setFdRemark(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRemark")), fdRemark));
	}

	/**
	 * set the value to Map
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Map toMap() {

		Map map = new HashMap();
		map.put("fdKeyId", StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));
		map.put("fdSecuritypathId", StringUtils.toString(fdSecuritypathId, eiMetadata.getMeta("fdSecuritypathId")));
		map.put("fdNotecode", StringUtils.toString(fdNotecode, eiMetadata.getMeta("fdNotecode")));
		map.put("fdNotesource", StringUtils.toString(fdNotesource, eiMetadata.getMeta("fdNotesource")));
		map.put("fdStatus", StringUtils.toString(fdStatus, eiMetadata.getMeta("fdStatus")));
		map.put("fdDepartmentId", StringUtils.toString(fdDepartmentId, eiMetadata.getMeta("fdDepartmentId")));
		map.put("fdResponsibilityPeople", StringUtils.toString(fdResponsibilityPeople, eiMetadata.getMeta("fdResponsibilityPeople")));
		map.put("fdNotecontent", StringUtils.toString(fdNotecontent, eiMetadata.getMeta("fdNotecontent")));
		map.put("fdNotedate", StringUtils.toString(fdNotedate, eiMetadata.getMeta("fdNotedate")));
		map.put("fdFeedback", StringUtils.toString(fdFeedback, eiMetadata.getMeta("fdFeedback")));
		map.put("fdRemark", StringUtils.toString(fdRemark, eiMetadata.getMeta("fdRemark")));

		return map;

	}
}